<link href="/static/public/layer/src/css/layui.css" rel="stylesheet">
<link href="/static/public/css/style.css" rel="stylesheet">
<script type="text/javascript" src="/static/manage/js/jquery-1.7.2.min.js"></script>
<script src="/static/public/layer/src/layui.js"></script>
<table class="layui-table" lay-even lay-skin="row">
    <thead>
        <tr>
            <th width="350">激活码</th>
            <th width="180">使用者</th>
            <th width="220">激活时间</th>
            <th width="220">有效天数</th>
            <th width="220">状态</th>
        </tr>
    </thead>   
    <tbody>
    <{foreach from=$codes item=item}>
        <tr>
            <td class="not_lb tal"><span class="c-ff6d5e"><{$item.code}></span></td>
            <td class="not_lb tal"><span class="c-ff6d5e"><{$item.name}></span></td>
            <td class="not_lb tal"><span class="c-ff6d5e"><{if $item['use_time'] > 0}><{$item['use_time']|date_format: '%Y-%m-%d <br> %H:%M:%S'}><{/if}></span></td>
            <td class="not_lb tal"><span class="c-ff6d5e"><{if $item['expire_day'] > 0}><{$item['expire_day']}><{/if}></span></td>
            <td class="not_lb tal">
                <{if $item.status == 1}>未使用<{if $item.dongjie|default:0 == 1}>（已冻结）<{/if}><{else}>已使用<{/if}>
            </td>
        </tr>
    <{/foreach}>
    <{if $codes|count eq 0}>
        <tr>
            <td class="center" style=" height:120px; text-align:center;line-height:120px;" colspan="6">
                赞无数据！
            </td>
        </tr>
    <{/if}>
    <tr>
        <td class="center" colspan="12">
            <!-- <input type="checkbox" lay-filter="checkbox_all" title="全选">
            <button id="delete" class="layui-btn layui-btn-primary layui-btn-small" style="margin-top:4px;"><i class="layui-icon"></i> 批量删除</button> -->
        </td>
    </tr>
    </tbody>
</table>
